package com.hdoit.ares.web.acti.modelconfig;
import com.hdoit.ares.web.ser.providers.GoodsCurrencyStateProvider;
import com.tennetcn.component.attribute.DateTimeAttribute;
import com.tennetcn.component.attribute.DisplayNameAttribute;
import com.tennetcn.component.attribute.DropDownListAttribute;
import com.tennetcn.component.attribute.base.ModelMetadataAttributeConfiguration;

/**
 * @author      caochengmeng
 * @email       
 * @createtime  2018年03月10日 20:06:30
 * @comment
 */
public class ActiRewardConfig extends ModelMetadataAttributeConfiguration{
    public ActiRewardConfig(){
        this.setProperty("actiId")
            .hasAttribute(new DisplayNameAttribute("活动表主键"));

        this.setProperty("customerId")
            .hasAttribute(new DisplayNameAttribute("客户Id"));

        this.setProperty("userName")
            .hasAttribute(new DisplayNameAttribute("中奖人姓名"));

        this.setProperty("reward")
            .hasAttribute(new DisplayNameAttribute("中奖金额"));
        
        this.setProperty("rewardCurrency")
        	.hasAttribute(new DisplayNameAttribute("奖金币种"))
        	.hasAttribute(new DropDownListAttribute(new GoodsCurrencyStateProvider()));

        this.setProperty("rewardDate")
            .hasAttribute(new DisplayNameAttribute("中奖时间"))
            .hasAttribute(new DateTimeAttribute());

    }
}